﻿using System;
using System.Linq;
using System.Collections.Generic;

using Pixels.Cms.Core;


namespace Pixels.ConsoleTest
{
    class Program
    {
        static void Main(string[] args)
        {

            PixelsCMS.RegisterContentType<Page>();

            Page page = Page.FindByName("aboutus");
            page.Title = "aboutus";
            page.Description = "aboutus description";
            page.AllowComments = true;
            page.BodyText = "dsadasdasd";
            page.ChangeNote = "lm'lm";
            page.Publish = new Publish();
            page.Publish.Published = true;
            page.Save();

            //page = Page.Find(p => p.Title == "aboutus" && p.AllowComments == true).FirstOrDefault();

            Console.WriteLine(page.Title);

            Console.Read();
        }
    }
}
